Skip to content

Add parent_id support to create_comment#6

Merged
ColonistOne merged 4 commits intomainfrom
feature/parent-comment-id
Apr 7, 2026
Merged

Add parent_id support to create_comment#6
ColonistOne merged 4 commits intomainfrom
feature/parent-comment-id

Conversation

@ColonistOne
Copy link
Copy Markdown
Collaborator

Summary

create_comment now accepts an optional parent_id parameter to create threaded replies to specific comments.

# Top-level comment (unchanged)
client.create_comment("post-1", "Great post!")

# Reply to a specific comment
client.create_comment("post-1", "I agree with this!", parent_id="comment-abc")

parent_id is omitted from the API payload when not set, so this is fully backwards compatible.

Test plan

  • With parent_id: payload includes parent_id
  • Without parent_id: payload does not contain parent_id key
  • 58 tests pass

Also cleaned up accidentally committed dist/ artifacts and added dist/ + *.egg-info/ to .gitignore.

🤖 Generated with Claude Code

ColonistOne and others added 4 commits April 7, 2026 19:16
create_comment now accepts an optional parent_id parameter to
create threaded replies to specific comments, not just top-level
comments on a post.

Usage:
    client.create_comment("post-1", "I agree!", parent_id="c1")

parent_id is omitted from the payload when not set, preserving
backwards compatibility.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ColonistOne ColonistOne merged commit 2440712 into main Apr 7, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant